package com.company.cloud.club.modules.vo;

import com.company.cloud.club.modules.core.util.ValidateUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class LiveInfoVo implements Serializable {

    private String nick;

    private String avatar;

    private Integer fansNum;

    private Boolean isRecom;

    /**
     * 未开始|直播中|已结束|回放
     */
    private String state;

    private List<String> backPlayUrl = new ArrayList<>();

    private List<String> backPlayRtmpUrl = new ArrayList<>();

    private String groupId;

    public void addBackPlayUrl(String str) {
        if (ValidateUtil.isValid(str)) {
            this.backPlayUrl.add(str);
        }
    }

    public void addBackPlayRtmpUrl(String str) {
        if (ValidateUtil.isValid(str)) {
            this.backPlayRtmpUrl.add(str);
        }
    }

}
